	/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = AddExtraTeam("Citizen", {
	color = Color(20, 150, 20, 255),
	model = {
		"models/player/Group01/Female_01.mdl",
		"models/player/Group01/Female_02.mdl",
		"models/player/Group01/Female_03.mdl",
		"models/player/Group01/Female_04.mdl",
		"models/player/group01/male_01.mdl",
		"models/player/Group01/Male_02.mdl",
		"models/player/Group01/male_03.mdl",
		"models/player/Group01/Male_04.mdl",
		"models/player/Group01/Male_05.mdl",
		"models/player/Group01/Male_06.mdl",
		"models/player/Group01/Male_07.mdl",
		"models/player/Group01/Male_08.mdl",
		"models/player/Group01/Male_09.mdl"
	},
	description = [[The Citizen is the most basic level of society you can hold
		besides being a hobo.
		You have no specific role in city life.  
                      
                        Salary = 45
                        Max    = ~
                        Respected Job = No]],
	weapons = {"weapon_mad_fist", "Inventory"},
	command = "citizen",
	max = 0,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_POLICE = AddExtraTeam("Civil Protection", {
	color = Color(25, 25, 170, 255),
	model = "models/player/police.mdl",
	description = [[The protector of every citizen that lives in the city .
		You have the power to arrest criminals and protect innocents.
		Hit them with your arrest baton to put them in jail
                     
                        Salary = 65
                        Max    = 4
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "arrest_stick", "unarrest_stick", "weapon_pistol", "stunstick", "door_ram", "weaponchecker"},
	command = "cp",
	max = 4,
	salary = 65,
	admin = 0,
	vote = true,
	hasLicense = true
})

TEAM_GANG = AddExtraTeam("Male Gangster", {
	color = Color(75, 75, 75, 255),
	model = {
		"models/player/group03/male_01.mdl",
		"models/player/Group03/Male_02.mdl",
		"models/player/Group03/male_03.mdl",
		"models/player/Group03/Male_04.mdl",
		"models/player/Group03/Male_05.mdl",
		"models/player/Group03/Male_06.mdl",
		"models/player/Group03/Male_07.mdl",
		"models/player/Group03/Male_08.mdl",
		"models/player/Group03/Male_09.mdl"},
	description = [[The lowest person of crime.
		A gangster generally works for the Mobboss who runs the crime family.
		The Mobboss sets your agenda and you follow it or you might be punished.
                        
                        Salary = 45
                        Max    = 5
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "lockpick", "keypad_cracker"},
	command = "mgangster",
	max = 5,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_FGANG = AddExtraTeam("Female Gangster", {
	color = Color(75, 75, 75, 255),
	model = {
		"models/player/Group03/Female_01.mdl",
		"models/player/Group03/Female_02.mdl",
		"models/player/Group03/Female_03.mdl",
		"models/player/Group03/Female_04.mdl",
		"models/player/Group03/Female_06.mdl"},
	description = [[The lowest person of crime.
		A gangster generally works for the Mobboss who runs the crime family.
		The Mobboss sets your agenda and you follow it or you might be punished.
                        
                        Salary = 45
                        Max    = 5
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "lockpick", "keypad_cracker"},
	command = "fgangster",
	max = 5,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_CRIP = AddExtraTeam("Cripz Gangster", {
	color = Color(29, 0, 255, 255),
	model = "models/player/phoenix.mdl",
	description = [[Your a Crip Gangster. Be gangster and smoke some
                        Bloodz! Bloodz and Cripz May RDM each other no one 
                        else NLR APPLIES!   
                        
                        Salary = 100
                        Max    = 10
                        Respected Job = Yes]],
	weapons = {"weapon_mad_fists", "pro_lockpick", "m9k_m92beretta"},
	command = "crip",
	max = 10,
	salary = 100,
	admin = 0,
	vote = false,
	hasLicense = false,
              customCheck = function(ply)
                 return string.find(ply:GetUserGroup(), "vip") or string.find(ply:GetUserGroup(), "goldmember") or ply:IsAdmin()
            end
})

TEAM_BLOOD = AddExtraTeam("Bloodz Gangster", {
	color = Color(255, 0, 0, 255),
	model = "models/player/guerilla.mdl",
	description = [[Your a Bloodz Gangster. Be gangster and smoke some
                        Crips! Bloodz and Cripz May RDM each other no one 
                        else NLR APPLIES! 
                       
                        Salary = 100
                        Max    = 10
                        Respected Job = Yes]],
	weapons = {"weapon_mad_fists", "pro_lockpick", "m9k_m92beretta"},
	command = "blood",
	max = 10,
	salary = 100,
	admin = 0,
	vote = false,
	hasLicense = false,
              customCheck = function(ply)             
                 return string.find(ply:GetUserGroup(), "vip") or string.find(ply:GetUserGroup(), "goldmember") or ply:IsAdmin()
            end
})

TEAM_MOB = AddExtraTeam("Mob boss", {
	color = Color(25, 25, 25, 255),
	model = "models/player/gman_high.mdl",
	description = [[The Mobboss is the boss of the criminals in the city.
		With his power he coordinates the gangsters and forms an efficent crime
		organization.
		He has the ability to break into houses by using a lockpick.
		Break people out of jail and get them to the unarrest NPC in the
		subway!
                       
                        Salary = 75
                        Max    = 1
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "lockpick"},
	command = "mobboss",
	max = 1,
	salary = 75,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_GUN = AddExtraTeam("Arms Dealer", {
	color = Color(255, 140, 0, 255),
	model = "models/player/monk.mdl",
	description = [[A gun dealer is the only person who can sell guns to other
		people.
		However, make sure you aren't caught selling guns that are illegal to
		the public.
		/Buyshipment <name> to Buy a  weapon shipment
		/Buygunlab to Buy a gunlab that spawns P228 pistols    
                    
                        Salary = 50
                        Max    = 2
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "Inventory"},
	command = "gundealer",
	max = 2,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_ILLEGAL = AddExtraTeam("Illegal Arms Dealer", {
	color = Color(30, 30, 30, 255),
	model = "models/player/leet.mdl",
	description = [[Your an Illegal Arms Dealer You sell high powered arms
                that no one else can sell. >:D Watch out because if you get 
                seen dealing illegal arms you will be in trouble.
		
		/Buyshipment <name> to Buy a  weapon shipment    
                    
                        Salary = 100
                        Max    = 2
                        Respected Job = Yes]],
	weapons = {weapon_mad_fists},
	command = "illegal",
	max = 2,
	salary = 100,
	admin = 0,
	vote = false,
	hasLicense = true,
              customCheck = function(ply)             
                 return string.find(ply:GetUserGroup(), "goldmember") or ply:IsAdmin()
            end
})

TEAM_OD = AddExtraTeam("Owner Arms Dealer", {
	color = Color(0, 0, 0, 255),
	model = "models/player/mossman.mdl",
	description = [[Salary = 100
                        Max    = 2
                        Respected Job = Yes]],
	weapons = {weapon_mad_fists},
	command = "ownerdealer",
	max = 2,
	salary = 100,
	admin = 0,
	vote = false,
	hasLicense = true,
              customCheck = function(ply)             
                 return ply:IsUserGroup("owner")
            end
})

TEAM_MEDIC = AddExtraTeam("Medic", {
	color = Color(47, 79, 79, 255),
	model = "models/player/kleiner.mdl",
	description = [[With your medical knowledge,
		you heal players to proper
		health.
		Without a medic, people can not be healed.
		Left click with the Medical Kit to heal other players.
		Right click with the Medical Kit to heal yourself. 
                       
                        Salary = 85
                        Max    = 3
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "med_kit"},
	command = "medic",
	max = 3,
	salary = 85,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_DETECTIVE = AddExtraTeam("Detective", {
	color = Color(25, 25, 255, 255),
	model = "models/player/alyx.mdl",
	description = [[Your job is to solve crimes and bust crooks! 
                       
                        Salary = 85
                        Max    = 2
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "weapon_pistol", "stunstick", "arrest_stick", "door_ram"},
	command = "detective",
	max = 2,
	salary = 85,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", {
	color = Color(20, 20, 255, 255),
	model = "models/player/combine_soldier_prisonguard.mdl",
	description = [[The Chief is the leader of the Civil Protection unit.
		Coordinate the police forces to bring law to the city
		Type /wanted <name> to alert the public to this criminal
		Type /jailpos to set the Jail Position     
                        Salary = 75
                        Max    = 1
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "arrest_stick", "unarrest_stick", "weapon_real_cs_desert_eagle", "stunstick", "door_ram", "weaponchecker"},
	command = "chief",
	max = 1,
	salary = 75,
	admin = 0,
	vote = false,
	hasLicense = true,
	NeedToChangeFrom = TEAM_POLICE
})

TEAM_MAYOR = AddExtraTeam("Mayor", {
	color = Color(150, 20, 20, 255),
	model = "models/player/breen.mdl",
	description = [[The Mayor of the city creates laws to serve the greater good
	of the people.
	If you are the mayor you may create and accept warrants.
	Type /wanted <name>  to warrant a player
	Type /jailpos to set the Jail Position
	Type /lockdown initiate a lockdown of the city.
	/unlockdown to end a lockdown
                        
                        Salary = 100
                        Max    = 1
                        Respected Job = No]],
	weapons = {weapon_mad_fists},
	command = "mayor",
	max = 1,
	salary = 100,
	admin = 0,
	vote = true,
	hasLicense = false
})

TEAM_HOBO = AddExtraTeam("Hobo", {
	color = Color(80, 45, 0, 255),
	model = "models/player/corpse1.mdl",
	description = [[The lowest member of society. All people see you laugh.
		You have no home.
		Beg for your food and money
		Sing for everyone who passes to get money
		Make your own wooden home somewhere in a corner or
		outside someone else's door 
                       
                        Salary = 0
                        Max    = 5
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "weapon_bugbait"},
	command = "hobo",
	max = 5,
	salary = 0,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_GUARD = AddExtraTeam("Secruity Guard", {
	color = Color(80, 255, 120, 215),
	model = "models/player/guerilla.mdl",
	description = [[Your job is to find a job and get paid for guarding gundealers
                        and pretty much anyone else who requires your help.                        
                        
                        Salary = 50
                        Max    = 3
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "weaponchecker"},
	command = "guard",
	max = 3,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_BANKER = AddExtraTeam("Banker", {
	color = Color(80, 255, 33, 255),
	model = "models/player/magnusson.mdl",
	description = [[Your job is to store peoples printers because "Banker"
                        is the only class that can legally have printers!
                        Watch out though Gangster will want some of that!                        
                        
                        Salary = 75
                        Max    = 3
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "weaponchecker"},
	command = "banker",
	max = 3,
	salary = 75,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_SWAT = AddExtraTeam("S.W.A.T", {
	color = Color(32, 100, 100, 225),
	model = "models/player/urban.mdl",
	description = [[Your the SWAT your job is to handle those heavy armed gangs
                        and anyone else the the standard police can't handle.
                        
                        Salary = 90
                        Max    = 5
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "weapon_tazer", "weapon_real_cs_m4a1", "weapon_real_cs_flash", "arrest_stick", "stunstick", "unarrest_stick"},
	command = "swat",
	max = 5,
	salary = 90,
	admin = 0,
	vote = true,
	hasLicense = true
})

TEAM_SWATLEADER = AddExtraTeam("S.W.A.T Leader", {
	color = Color(32, 100, 100, 230),
	model = "models/player/riot.mdl",
	description = [[Your the SWAT leader your job is to handle those heavy armed gangs
                        and anyone else the the standard police can't handle and make sure
                        your squad does what's it is told.
                        
                        Salary = 160
                        Max    = 1
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "weapon_tazer", "weapon_real_cs_m4a1", "weapon_real_cs_flash", "arrest_stick", "stunstick", "unarrest_stick", 
                  "m9k_ithacam37"},
	command = "swatlead",
	max = 1,
	salary = 100,
	admin = 0,
	vote = true,
	hasLicense = true,
        NeedToChangeFrom = TEAM_SWAT
})

TEAM_SWATSPECIAL = AddExtraTeam("S.W.A.T Special Ops", {
	color = Color(33, 255, 0, 255),
	model = "models/player/swat.mdl",
	description = [[Your the SWAT your job is to handle those heavy armed gangs
                        and anyone else the the standard police can't handle, your
                        the one man army.
                        
                        Salary = 250
                        Max    = 2
                        Respected Job = Yes]],
	weapons = {"weapon_mad_fists", "mk9_glock", "mk9_g36", "weapon_real_cs_flash",
                   "mk9_svu", "m9k_ithacam37", "weapon_mad_grenade"},
	command = "swatspecial",
	max = 2,
	salary = 250,
	admin = 0,
	vote = true,
	hasLicense = true,
              customCheck = function(ply)             
                 return string.find(ply:GetUserGroup(), "vip") or string.find(ply:GetUserGroup(), "goldmember") or ply:IsAdmin()
            end
})

TEAM_TERRORIST = AddExtraTeam("Terrorist", {
	color = Color(100, 100, 255, 255),
	model = "models/player/arctic.mdl",
	description = [[Your job is to try and kill the mayor and take
                        take over the town, just remember they can take
                        it back. Make sure not to kill any citizens and
                        don't break NLR!   
                        
                        Salary = 100
                        Max    = 10
                        Respected Job = Yes]],
	weapons = {"weapon_mad_fists", "pro_lockpick", "m9k_ak47"},
	command = "terrorist",
	max = 10,
	salary = 100,
	admin = 0,
	vote = false,
	hasLicense = false,
              customCheck = function(ply)             
                 return string.find(ply:GetUserGroup(), "goldmember") or ply:IsAdmin()
            end
})

TEAM_MILLITARY = AddExtraTeam("Military", {
	color = Color(200, 200, 55, 255),
	model = "models/player/gasmask.mdl",
	description = [[Your job is to try and kill the track down and
                        kill terrorist, you can not act as police! 
                        You are only allowed to deal with terrorists.
                        Protect the city and its Government from them!
                        Salary = 250
                        Max    = 5
                        Respected Job = Yes]],
	weapons = {"weapon_mad_fists", "m9k_m92beretta", "m9k_auga3", "weapon_mad_knife", "weapon_real_cs_flash", "door_ram",
                   "m9k_usas"},
	command = "millitary",
	max = 5,
	salary = 250,
	admin = 0,
	vote = false,
	hasLicense = false,
              customCheck = function(ply)             
                 return string.find(ply:GetUserGroup(), "goldmember") or ply:IsAdmin()
            end
})

TEAM_FIGHTCLUB = AddExtraTeam("Fight Club Manager", {
	color = Color(250, 250, 55, 255),
	model = "models/player/soldier_stripped.mdl",
	description = [[You control the the illegal fight club
                        make a ring and get people to bet on who
                        will win!   
                        
                        Salary = 120
                        Max    = 2
                        Respected Job = Yes]],
	weapons = {"weapon_mad_fists", "weapon_mad_knife", "weaponchecker"},
	command = "fightclub",
	max = 2,
	salary = 120,
	admin = 0,
	vote = false,
	hasLicense = false,
              customCheck = function(ply)             
                 return string.find(ply:GetUserGroup(), "vip") or string.find(ply:GetUserGroup(), "goldmember") or ply:IsAdmin()
            end
})

TEAM_HITMAN = AddExtraTeam("Hitman", {
	color = Color(25, 200, 100, 255),
	model = "models/player/barney.mdl",
	description = [[Your job is to kill people "ONLY" if you are paid to do so!
                   Remember it is still illegal so you can be arrested for murder.
                   If you RDM as hit man you will be put in a rank called
                   DUMB USER! This will make it so you can never use that class again!   
                        
                        Salary = 50
                        Max    = 2
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "m9k_hk45", "weapon_real_cs_scout"},
	command = "hitman",
	max = 2,
	salary = 50,
	admin = 0,
	vote = true,
	hasLicense = false
})

TEAM_PROHITMAN = AddExtraTeam("Pro Hitman", {
	color = Color(50, 150, 100, 255),
	model = "models/player/Group01/Male_07.mdl",
	description = [[Your job is to kill people "ONLY" if you are paid to do so!
                   Remember it is still illegal so you can be arrested for murder.
                   If you RDM as hit man you will be put in a rank called
                   DUMB USER! This will make it so you can never use that class again!   
                        
                        Salary = 100
                        Max    = 2
                        Respected Job = No]],
	weapons = {"weapon_mad_fists", "gdcw_silverballer_s", "m9k_svu", "weapon_disguise"},
	command = "prohitman",
	max = 2,
	salary = 100,
	admin = 0,
	vote = true,
	hasLicense = false,
              customCheck = function(ply)             
                 return string.find(ply:GetUserGroup(), "goldmember") or ply:IsAdmin() or ply:IsUserGroup("devcoowner")
            end
})

TEAM_MOD = AddExtraTeam("Mod on Duty", {
	color = Color(32, 100, 100, 200),
	model = "models/player/mossman.mdl",
	description = [[You know what your job is..
                        
                        Salary = 0
                        Max    = ~
                        Respected Job = Yes]],
	weapons = {weapon_mad_fists},
	command = "mod",
	max = 0,
	salary = 0,
	admin = 1,
	vote = false,
	hasLicense = false,
              customCheck = function(ply)             
                 return ply:IsUserGroup("moderator") or ply:IsUserGroup("coowner") or ply:IsUserGroup("owner") or ply:IsUserGroup("devcoowner")
            end
})

TEAM_ADMIN = AddExtraTeam("Admin on Duty", {
	color = Color(32, 100, 200, 200),
	model = "models/player/mossman.mdl",
	description = [[You know what your job is.. If anyone under the rank of moderator will be banned if they use this!
                        
                        Salary = 0
                        Max    = ~
                        Respected Job = Yes]],
	weapons = {weapon_mad_fists},
	command = "admin",
	max = 0,
	salary = 0,
	admin = 1,
	vote = false,
	hasLicense = false,
              customCheck = function(ply)             
                 return ply:IsUserGroup("admin") or ply:IsUserGroup("owner") or ply:IsUserGroup("devcoowner")
            end
})

TEAM_COUNCIL = AddExtraTeam("Council on Duty", {
	color = Color(100, 2, 35, 224),
	model = "models/player/mossman.mdl",
	description = [[You know what your job is..
                        
                        Salary = 0
                        Max    = ~
                        Respected Job = Yes]],
	weapons = {weapon_mad_fists},
	command = "council",
	max = 0,
	salary = 0,
	admin = 2,
	vote = false,
	hasLicense = false,
              customCheck = function(ply)             
                 return ply:IsUserGroup("council") or ply:IsUserGroup("coowner") or ply:IsUserGroup("owner") or ply:IsUserGroup("devcoowner")
            end
})

TEAM_OWNER = AddExtraTeam("OWNER", {
	color = Color(0, 0, 0, 255),
	model = "models/player/mossman.mdl",
	description = [[You know what your job is.. Anyone who is not an owner or 
                        has special permission to use
                        will be PERMA BANNED!
                        
                        Salary = 1,000
                        Max    = ~
                        Respected Job = Yes]],
	weapons = {weapon_mad_fists},
	command = "owner",
	max = 2,
	salary = 1000,
	admin = 2,
	vote = false,
	hasLicense = false,
              customCheck = function(ply)             
                 return ply:IsUserGroup("owner") or ply:IsUserGroup("devcoowner")
            end
})

TEAM_ZOMBIE = AddExtraTeam("Zombie", {
	color = Color(0, 0, 0, 0),
	model = "models/player/zombie_classic.mdl",
	description = [[Zombie]],
	weapons = {weapon_real_cs_knife_zombie},
	command = util.Base64Encode("zomby"),
	max = 2,
	salary = 0,
	admin = 0,
	noshow = true,
	vote = false,
	hasLicense = false
})
//ADD CUSTOM TEAMS UNDER THIS LINE:









/*
--------------------------------------------------------
HOW TO MAKE A DOOR GROUP
--------------------------------------------------------
AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)

WARNING: THE DOOR GROUPS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!


The default door groups, can also be used as examples:
*/
AddDoorGroup("Government only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR, TEAM_SWAT, TEAM_SWATLEADER, TEAM_SWATSPECIAL)
AddDoorGroup("Gundealer only", TEAM_GUN)


/*
--------------------------------------------------------
HOW TO MAKE AN AGENDA
--------------------------------------------------------
AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))

WARNING: THE AGENDAS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!

The default agenda's, can also be used as examples:
*/
AddAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
AddAgenda("Police agenda", TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE})


/*
---------------------------------------------------------------------------
HOW TO MAKE A GROUP CHAT
---------------------------------------------------------------------------
Pick one!
GAMEMODE:AddGroupChat(List of team variables separated by comma)

or

GAMEMODE:AddGroupChat(a function with ply as argument that returns whether a random player is in one chat group)
This one is for people who know how to script Lua.

*/
GM:AddGroupChat(function(ply) return ply:IsCP() end)
GM:AddGroupChat(TEAM_MOB, TEAM_GANG)